package com.ruoyi.project.treat.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;
import java.util.Objects;

public class TrePatient extends BaseEntity {
    private Integer patiId; //患者编号
    private String patiName; //患者名称
    private String patiCode; //患者身份证
    private String patiPhone; //患者电话
    private Date patiBirthday; //患者生日
    private String patiAge; //患者年龄
    private String patiSex; //患者性别
    private String patiAddress; //患者住址
    private String patiAllergy; //患者过敏史
    private String status; //信息状态
    private String remark; //备注

    public TrePatient() {
    }

    public TrePatient(Integer patiId, String patiName, String patiCode, String patiPhone, Date patiBirthday, String patiAge, String patiSex, String patiAddress, String patiAllergy, String status, String remark) {
        this.patiId = patiId;
        this.patiName = patiName;
        this.patiCode = patiCode;
        this.patiPhone = patiPhone;
        this.patiBirthday = patiBirthday;
        this.patiAge = patiAge;
        this.patiSex = patiSex;
        this.patiAddress = patiAddress;
        this.patiAllergy = patiAllergy;
        this.status = status;
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "TrePatient{" +
                "patiId=" + patiId +
                ", patiName='" + patiName + '\'' +
                ", patiCode='" + patiCode + '\'' +
                ", patiPhone='" + patiPhone + '\'' +
                ", patiBirthday=" + patiBirthday +
                ", patiAge='" + patiAge + '\'' +
                ", patiSex='" + patiSex + '\'' +
                ", patiAddress='" + patiAddress + '\'' +
                ", patiAllergy='" + patiAllergy + '\'' +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TrePatient that = (TrePatient) o;
        return Objects.equals(patiId, that.patiId) &&
                Objects.equals(patiName, that.patiName) &&
                Objects.equals(patiCode, that.patiCode) &&
                Objects.equals(patiPhone, that.patiPhone) &&
                Objects.equals(patiBirthday, that.patiBirthday) &&
                Objects.equals(patiAge, that.patiAge) &&
                Objects.equals(patiSex, that.patiSex) &&
                Objects.equals(patiAddress, that.patiAddress) &&
                Objects.equals(patiAllergy, that.patiAllergy) &&
                Objects.equals(status, that.status) &&
                Objects.equals(remark, that.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(patiId, patiName, patiCode, patiPhone, patiBirthday, patiAge, patiSex, patiAddress, patiAllergy, status, remark);
    }

    public Integer getPatiId() {
        return patiId;
    }

    public void setPatiId(Integer patiId) {
        this.patiId = patiId;
    }

    public String getPatiName() {
        return patiName;
    }

    public void setPatiName(String patiName) {
        this.patiName = patiName;
    }

    public String getPatiCode() {
        return patiCode;
    }

    public void setPatiCode(String patiCode) {
        this.patiCode = patiCode;
    }

    public String getPatiPhone() {
        return patiPhone;
    }

    public void setPatiPhone(String patiPhone) {
        this.patiPhone = patiPhone;
    }

    public Date getPatiBirthday() {
        return patiBirthday;
    }

    public void setPatiBirthday(Date patiBirthday) {
        this.patiBirthday = patiBirthday;
    }

    public String getPatiAge() {
        return patiAge;
    }

    public void setPatiAge(String patiAge) {
        this.patiAge = patiAge;
    }

    public String getPatiSex() {
        return patiSex;
    }

    public void setPatiSex(String patiSex) {
        this.patiSex = patiSex;
    }

    public String getPatiAddress() {
        return patiAddress;
    }

    public void setPatiAddress(String patiAddress) {
        this.patiAddress = patiAddress;
    }

    public String getPatiAllergy() {
        return patiAllergy;
    }

    public void setPatiAllergy(String patiAllergy) {
        this.patiAllergy = patiAllergy;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
